package com.bootdo.attribute.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.attribute.dao.AttributeDao;
import com.bootdo.attribute.domain.AttributeDO;
import com.bootdo.attribute.service.AttributeService;



@Service
public class AttributeServiceImpl implements AttributeService {
	@Autowired
	private AttributeDao attributeDao;
	
	@Override
	public AttributeDO get(Integer id){
		return attributeDao.get(id);
	}
	
	@Override
	public List<AttributeDO> list(Map<String, Object> map){
		return attributeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return attributeDao.count(map);
	}
	
	@Override
	public int save(AttributeDO attribute){
		return attributeDao.save(attribute);
	}
	
	@Override
	public int update(AttributeDO attribute){
		return attributeDao.update(attribute);
	}
	
	@Override
	public int remove(Integer id){
		return attributeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return attributeDao.batchRemove(ids);
	}
	
}
